/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-06-08 17:04:22
 * @LastEditTime : 2023-08-11 11:13:19
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\ThrRouter\GantryCraneCameras.jsx
 * @Description  :
 */

import { API_LIST } from '../../../Api/Api'
import { commonTableList } from '../Common/common'

export const GantryCraneCameras = async ({ twoData, ClientData }) => {
    let dataList = {
        uuid: twoData.uuid,
        width: 800,
        isCheckbox: true,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getCamera'],
        pos: 'posGantryCraneCameras',
        path: [twoData.uuid],
        assemblyData: e => e.map(({ uuid }) => uuid),
        columns: [
            { ...commonTableList.organizationUuid, valueEnum: ClientData.organization },
            {
                title: '摄像头名称',
                dataIndex: 'tableName',
                ellipsis: true,
            },
            {
                title: '摄像头位置',
                dataIndex: 'cameraPositionName',
                ellipsis: true,
            },
            {
                title: '摄像头类型',
                dataIndex: 'cameraTypeName',
                ellipsis: true,
            },
        ],
    }
    return dataList
}
